<?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

require("init.php");

$DBC = new db();
$DBC->SELECTDB("guitig");
$DBC2 = new db();
$DBC2->SELECTDB("guitig");



?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<html>
<head>
<title>iCUP - Beheer - Toevoegen</title>
<!--<meta http-equiv="X-UA-Compatible" content="IE=8" />-->
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="hourtable.css" />
<link rel="stylesheet" type="text/css" href="Buttons.css" />
<script type="text/javascript" src="funcs.js"></script>
<script type="text/javascript" src="selectivizr.js"></script>
</head>
<body>
<?php



	$week = 52;
	
	$DBC->QUERY("
		SELECT DISTINCT S.id, S.uur, S.dag
		FROM studieuur S, studieuurklas SK
		WHERE SK.studieuur  = S.id
		AND S.week = '$week'
	");
	
	//$resultheader = mysql_query($QUERY);
	//$columns = mysql_numrows($resultheader);


	
?><table cellspacing="0" align="left" valign="top">
	<tr>
		<td colspan="<?php print($DBC->rows); ?>">
			<h1>Voeg toe: week</h1>
		</td>
	</tr>
	<tr style="vertical-align: top;">
		<td>
			nr:
		</td>
		<td>
			<input type="text" style="display: block; width: 100px;" />
		</td>
	</tr>
	<tr style="vertical-align: top;" height="100">
		<td>
			basis:
		</td>
		<td>
			<select style="display: block; width: 100px;">
				<option>b1</option>
				<option>b2</option>
			</select>
		</td>
	</tr>
	<tr style="vertical-align: top;">
		<td colspan="2" align="center">
			<a onclick="" class="bigbutton">voeg&nbsp;toe!</a>
		</td>
	</tr>
</table>
</body>